const { resolve } = require("path")
// https://vitejs.dev/config/#config-file-resolving
export default {
	// config options
	publicDir: process.env.NODE_ENV === "production" ? "/dist/" : "/", //根路径
	resolve: {
		alias: {
			"/@/": resolve(__dirname, "src"),
			// "/jquery/": resolve("static/"),
		},
	},
	server: {
		proxy: {},
	},
	rollupOptions: {
		external: ["jquery"],
		output: {
			globals: {
				jquery: "$",
			},
		},
	},
	// optimizeDeps: {
	//   include: ['bootstrap']
	// },
}
